From 6235b12ca4a26c1843f9fc15963a800353e81b64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 10 Jan 2018 10:49:13 +0100 Subject: [PATCH] entry: Fix get_text_allocation These should be reported in GtkEntry coordinates, so relative to the entry's origin. This fixes entrys with top/bottom padding applied. --- gtk/gtkentry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 7ecec902e4..fd3742d199 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -3076,9 +3076,10 @@ gtk_entry_get_text_allocation (GtkEntry *entry, { GtkEntryPrivate *priv = entry->priv; - gtk_widget_get_own_allocation (GTK_WIDGET (entry), allocation); allocation->x = priv->text_x; + allocation->y = 0; allocation->width = priv->text_width; + allocation->height = gtk_widget_get_height (GTK_WIDGET (entry)); } static void -- 2.30.2